package com.visizen.wisdomclass.server.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WcInfomFeedbackExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WcInfomFeedbackExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFEEDBACK_IDIsNull() {
            addCriterion("FEEDBACK_ID is null");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDIsNotNull() {
            addCriterion("FEEDBACK_ID is not null");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDEqualTo(Long value) {
            addCriterion("FEEDBACK_ID =", value, "FEEDBACK_ID");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDNotEqualTo(Long value) {
            addCriterion("FEEDBACK_ID <>", value, "FEEDBACK_ID");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDGreaterThan(Long value) {
            addCriterion("FEEDBACK_ID >", value, "FEEDBACK_ID");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDGreaterThanOrEqualTo(Long value) {
            addCriterion("FEEDBACK_ID >=", value, "FEEDBACK_ID");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDLessThan(Long value) {
            addCriterion("FEEDBACK_ID <", value, "FEEDBACK_ID");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDLessThanOrEqualTo(Long value) {
            addCriterion("FEEDBACK_ID <=", value, "FEEDBACK_ID");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDIn(List<Long> values) {
            addCriterion("FEEDBACK_ID in", values, "FEEDBACK_ID");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDNotIn(List<Long> values) {
            addCriterion("FEEDBACK_ID not in", values, "FEEDBACK_ID");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDBetween(Long value1, Long value2) {
            addCriterion("FEEDBACK_ID between", value1, value2, "FEEDBACK_ID");
            return (Criteria) this;
        }

        public Criteria andFEEDBACK_IDNotBetween(Long value1, Long value2) {
            addCriterion("FEEDBACK_ID not between", value1, value2, "FEEDBACK_ID");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDIsNull() {
            addCriterion("INFORM_ID is null");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDIsNotNull() {
            addCriterion("INFORM_ID is not null");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDEqualTo(Long value) {
            addCriterion("INFORM_ID =", value, "INFORM_ID");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDNotEqualTo(Long value) {
            addCriterion("INFORM_ID <>", value, "INFORM_ID");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDGreaterThan(Long value) {
            addCriterion("INFORM_ID >", value, "INFORM_ID");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDGreaterThanOrEqualTo(Long value) {
            addCriterion("INFORM_ID >=", value, "INFORM_ID");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDLessThan(Long value) {
            addCriterion("INFORM_ID <", value, "INFORM_ID");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDLessThanOrEqualTo(Long value) {
            addCriterion("INFORM_ID <=", value, "INFORM_ID");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDIn(List<Long> values) {
            addCriterion("INFORM_ID in", values, "INFORM_ID");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDNotIn(List<Long> values) {
            addCriterion("INFORM_ID not in", values, "INFORM_ID");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDBetween(Long value1, Long value2) {
            addCriterion("INFORM_ID between", value1, value2, "INFORM_ID");
            return (Criteria) this;
        }

        public Criteria andINFORM_IDNotBetween(Long value1, Long value2) {
            addCriterion("INFORM_ID not between", value1, value2, "INFORM_ID");
            return (Criteria) this;
        }

        public Criteria andUSER_IDIsNull() {
            addCriterion("USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andUSER_IDIsNotNull() {
            addCriterion("USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andUSER_IDEqualTo(Long value) {
            addCriterion("USER_ID =", value, "USER_ID");
            return (Criteria) this;
        }

        public Criteria andUSER_IDNotEqualTo(Long value) {
            addCriterion("USER_ID <>", value, "USER_ID");
            return (Criteria) this;
        }

        public Criteria andUSER_IDGreaterThan(Long value) {
            addCriterion("USER_ID >", value, "USER_ID");
            return (Criteria) this;
        }

        public Criteria andUSER_IDGreaterThanOrEqualTo(Long value) {
            addCriterion("USER_ID >=", value, "USER_ID");
            return (Criteria) this;
        }

        public Criteria andUSER_IDLessThan(Long value) {
            addCriterion("USER_ID <", value, "USER_ID");
            return (Criteria) this;
        }

        public Criteria andUSER_IDLessThanOrEqualTo(Long value) {
            addCriterion("USER_ID <=", value, "USER_ID");
            return (Criteria) this;
        }

        public Criteria andUSER_IDIn(List<Long> values) {
            addCriterion("USER_ID in", values, "USER_ID");
            return (Criteria) this;
        }

        public Criteria andUSER_IDNotIn(List<Long> values) {
            addCriterion("USER_ID not in", values, "USER_ID");
            return (Criteria) this;
        }

        public Criteria andUSER_IDBetween(Long value1, Long value2) {
            addCriterion("USER_ID between", value1, value2, "USER_ID");
            return (Criteria) this;
        }

        public Criteria andUSER_IDNotBetween(Long value1, Long value2) {
            addCriterion("USER_ID not between", value1, value2, "USER_ID");
            return (Criteria) this;
        }

        public Criteria andCONTANTIsNull() {
            addCriterion("CONTANT is null");
            return (Criteria) this;
        }

        public Criteria andCONTANTIsNotNull() {
            addCriterion("CONTANT is not null");
            return (Criteria) this;
        }

        public Criteria andCONTANTEqualTo(String value) {
            addCriterion("CONTANT =", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTNotEqualTo(String value) {
            addCriterion("CONTANT <>", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTGreaterThan(String value) {
            addCriterion("CONTANT >", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTGreaterThanOrEqualTo(String value) {
            addCriterion("CONTANT >=", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTLessThan(String value) {
            addCriterion("CONTANT <", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTLessThanOrEqualTo(String value) {
            addCriterion("CONTANT <=", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTLike(String value) {
            addCriterion("CONTANT like", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTNotLike(String value) {
            addCriterion("CONTANT not like", value, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTIn(List<String> values) {
            addCriterion("CONTANT in", values, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTNotIn(List<String> values) {
            addCriterion("CONTANT not in", values, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTBetween(String value1, String value2) {
            addCriterion("CONTANT between", value1, value2, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andCONTANTNotBetween(String value1, String value2) {
            addCriterion("CONTANT not between", value1, value2, "CONTANT");
            return (Criteria) this;
        }

        public Criteria andFB_TIMEIsNull() {
            addCriterion("FB_TIME is null");
            return (Criteria) this;
        }

        public Criteria andFB_TIMEIsNotNull() {
            addCriterion("FB_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andFB_TIMEEqualTo(Date value) {
            addCriterion("FB_TIME =", value, "FB_TIME");
            return (Criteria) this;
        }

        public Criteria andFB_TIMENotEqualTo(Date value) {
            addCriterion("FB_TIME <>", value, "FB_TIME");
            return (Criteria) this;
        }

        public Criteria andFB_TIMEGreaterThan(Date value) {
            addCriterion("FB_TIME >", value, "FB_TIME");
            return (Criteria) this;
        }

        public Criteria andFB_TIMEGreaterThanOrEqualTo(Date value) {
            addCriterion("FB_TIME >=", value, "FB_TIME");
            return (Criteria) this;
        }

        public Criteria andFB_TIMELessThan(Date value) {
            addCriterion("FB_TIME <", value, "FB_TIME");
            return (Criteria) this;
        }

        public Criteria andFB_TIMELessThanOrEqualTo(Date value) {
            addCriterion("FB_TIME <=", value, "FB_TIME");
            return (Criteria) this;
        }

        public Criteria andFB_TIMEIn(List<Date> values) {
            addCriterion("FB_TIME in", values, "FB_TIME");
            return (Criteria) this;
        }

        public Criteria andFB_TIMENotIn(List<Date> values) {
            addCriterion("FB_TIME not in", values, "FB_TIME");
            return (Criteria) this;
        }

        public Criteria andFB_TIMEBetween(Date value1, Date value2) {
            addCriterion("FB_TIME between", value1, value2, "FB_TIME");
            return (Criteria) this;
        }

        public Criteria andFB_TIMENotBetween(Date value1, Date value2) {
            addCriterion("FB_TIME not between", value1, value2, "FB_TIME");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}